package com.lanxiaoye.shoppingSystem.dao;

import com.lanxiaoye.shoppingSystem.entity.ScanRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScanRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ScanRecord record);

    int insertSelective(ScanRecord record);

    ScanRecord selectByPrimaryKey(Integer id);

    ScanRecord selectByUserAndGoods(@Param("userId") Integer userId, @Param("goodsId") Integer goodsId);

    List<ScanRecord> selectRecentScan(Integer userId);

    int updateByPrimaryKeySelective(ScanRecord record);

    int updateByPrimaryKey(ScanRecord record);
}